package com.ruoyi.teaching.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
  * <p>
  *
  * </p>
  *
  * @author 王旭
  * @since 2024-07-01
  */
@Data
@TableName("platform_p_comment")
@ApiModel(value="PlatformPComment对象", description="")
public class PlatformPComment implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "评价id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "评价人id")
    private Long commentPersonId;

    @ApiModelProperty(value = "评价人昵称")
    private String commentNickName;

    @ApiModelProperty(value = "评价人头像")
    private String avatar;

    @ApiModelProperty(value = "评价内容")
    @NotBlank(message = "请填写评价内容")
    private String commentContent;

    @ApiModelProperty(value = "评分")
    @NotNull(message = "请填写评分")
    private Double grade;

    @ApiModelProperty(value = "评论项目所属（0备课授课，1虚拟仿真）")
    @NotNull(message = "评价所属获取失败，请稍后重试")
    private Integer commentType;

    @ApiModelProperty(value = "评论项目id")
    @NotNull(message = "评价所属项目获取失败，请稍后重试")
    private Long commentProjectId;

    @ApiModelProperty(value = "评论省份")
    private String commentProvince;


    @ApiModelProperty(value = "创建者id")
    private Integer createId;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新者id")
    private Integer updateId;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;



}
